//src/route.js
import {
	createRouter,
	createWebHistory
} from 'vue-router'
const routes = [{
	path: '/',
	name: 'Login',
	component: () => import('./views/Login.vue')
}, {
	path: '/home',
	name: 'Home',
	component: () => import('./views/Home.vue')
}, ]
// 创建路由实例
const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL), // 使用HTML5 history模式
	routes // 注入路由配置
})

export default router